<template>
	<view class="all">
		<view class="name">
			<view class="logos">
				<image src="../../../static/icon@2x.png" mode=""></image>
				<p class="text1">USDT</p>
			</view>
			<view class="assets">
				<p class="text2">0</p>
				<p class="text3">资产</p>
			</view>
		</view>
		<view class="type">
			<p class="text1">链类型</p>
			<view class="assets">
				<button type="default" class="erc">ERC20</button>
				<button type="default" class="trc">TRC20</button>
			</view>
		</view>
		<view class="option">
			<view class="logos">
				<p class="text1">地址</p>
				<u-input :border="border" type="select" :select-open="actionSheetShow" v-model="model.sex" placeholder="请选择地址" @click="actionSheetShow = true" input-align="right"></u-input>
			</view>
			<view class="assets">
				<p class="text2">数量</p>
				<input type="text" placeholder="最小提币数量：25XRP" class="text3" />
			</view>
		</view>
		<view class="option">
			<view class="logos">
				<p class="text1">地址</p>
				<p class="text1">0.1000XRP</p>
			</view>
			<view class="assets">
				<p class="text2">数量</p>
				<p class="text2">0.00XRP</p>
			</view>
		</view>
		<button type="default" class="tb">提币</button>
		<u-action-sheet :list="actionSheetList" v-model="actionSheetShow" @click="actionSheetCallback"></u-action-sheet>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '提币',
				border: false,
				pickerShow: false,
				actionSheetShow: false,
				model: {
					region: '',
					sex:''
				},
				actionSheetList: [
					{
						text: 'XRP'
					}
				]
			}
		},
		methods:{
			// 点击actionSheet回调
			actionSheetCallback(index) {
				uni.hideKeyboard();
				this.model.sex = this.actionSheetList[index].text;
			},
		}
	}
</script>

<style lang="less">
	.uni-input-input{
		text-align: right;
	}
	.input-placeholder{
		text-align: right;
	}
	.all{
		width: 100%;
		background: #F2F1F5;
		padding: 20rpx 20rpx;
		.name{
			width: 100%;
			height: 224rpx;
			background: #FFFFFF;
			opacity: 1;
			border-radius: 4px;
			padding-top: 42rpx;
			.logos{
				display: flex;
				justify-content:center;
				image{
					width: 46rpx;
					height: 46rpx;
					margin-right: 16rpx;
				}
				.text1{
					font-size: 28rpx;
					color: #040404;
					font-weight:bold;
				}
			}
			.assets{
				display: flex;
				justify-content:center;
				margin-top: 32rpx;
				color: #999999;
				.text2{
				font-size: 48rpx;
				color: #000000;
				font-weight:bold;
				margin-right: 16rpx;
				}
				.text3{
				font-size: 28rpx;
				color: #999999;
				}
			}
		}
		.type{
			width: 100%;
			height: 162rpx;
			background: #FFFFFF;
			opacity: 1;
			border-radius: 4px;
			padding-top: 32rpx;
			margin-top: 20rpx;
			.text1{
				font-size: 28rpx;
				color: #040404;
				margin-left: 12rpx;
			}
			.assets{
				display: flex;
				justify-content:flex-start;
				margin-top: 22rpx;
				.erc{
					width: 168rpx;
					height: 60rpx;
					border: 1px solid #764CFA;
					opacity: 1;
					border-radius: 4px;
					line-height: 60rpx;
					font-size: 26rpx;
					color: #764CFA;
				}
				.trc{
					width: 168rpx;
					height: 60rpx;
					border: 1px solid #666666;
					opacity: 1;
					border-radius: 4px;
					line-height: 60rpx;
					font-size: 26rpx;
					color: #666666;
				}
			}
		}
		.option{
			width: 100%;
			height: 200rpx;
			background: #FFFFFF;
			opacity: 1;
			border-radius: 8rpx;
			margin-top: 20rpx;
			padding: 40rpx 32rpx;
			.logos{
				width: 100%;
				display: flex;
				justify-content:space-between;
				.text1{
					font-size: 28rpx;
					color: #040404;
					font-weight:bold;
					line-height: 70rpx;
				}
			}
			.assets{
				display: flex;
				justify-content:space-between;
				margin-top: 20rpx;
				.text2{
				font-size: 28rpx;
				color: #000000;
				font-weight:bold;
				}
				.text3{
				font-size: 32rpx;
				color: #000000;
				}
			}
		}
		.tb{
			height: 98rpx;
			background: #764CFA;
			font-size: 14px;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 98rpx;
			margin-top: 40rpx;
		}
	}
</style>
